package org.ws.task.listener.zk;

import org.ws.task.model.NodeMetadata;

public interface LeaderNodeListener extends NodeListener{

    default void becomeLeader(NodeMetadata nodeMetadata){}

    default void notLeader(NodeMetadata nodeMetadata){}

    /**
     * Leader变更
     */
    default void changeLeaderNode(NodeMetadata nodeMetadata){}

    default void removeLeaderNode(NodeMetadata nodeMetadata){}
}
